 <?php 
if(count($ajax_activity)>0){
foreach($ajax_activity as $listactivities){?>
    <div class="fl w269 pdl20">
      <h1 class="ff_museo700 mgt0 blue f16 lheight16"><?php echo $listactivities["name"] ?>, <br />
        <span class="gray ff_museo500 lighter"><?php echo $listactivities["provide"] ?></span> </h1>
      <div class="item h100 ov_fl_hidden">
        <div class="fl w98 txt_center f11"><img alt="Activities travelers recommend - <?php echo $listactivities["name"]." - ".$listactivities["provide"] ?>" title="" src="<?php echo $listactivities["avatar"] ?>" width="98" height="75" class="fl pdb10" /><a href="#" class="clr_2e5c96">Visitor photos (22)</a></div>
        <div class="fr w165">
          <p class="clr_2e5c96 mgt0"><?php echo $listactivities["promotion"]; ?></p>
          <div class="fl pdt1">
          	<?php for($i=1;$i<=$listactivities["acitivitystar"];$i++){?>
				<img src="<?php echo base_url(); ?>public/images/star_01.png" width="12" height="11" class="pdr4"/>
			<?php }if($listactivities["acitivitystar"]<5){
					for($i=$listactivities["acitivitystar"];$i<5;$i++){?>
						<img src="<?php echo base_url(); ?>public/images/hidden-star-05.png" width="12" height="11" class="pdr4"/>
					<?php }
				}?>
          </div>
          &nbsp;<?php echo count($listactivities["review"]); ?> reviews</div>
      </div>
      <p class="f11 mgt18 mgb10 item">Category: <?php echo $listactivities["category"]; ?><br>
        Owner description: <?php echo $listactivities["description"]; ?><a href="#" class="clr_2e5c96">more &raquo;</a></p>
    </div>
    <?php }}?>